package com.smt.modules.bus.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import com.smt.common.base.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 账单表
 * 
 * @author murong
 * @email 981620741@qq.com
 * @date 2018-10-17 10:06:53
 */
@Data
@TableName("bus_bill")
public class BillEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 账单id
	 */
	@TableId
	private Long id;
	/**
	 * 账单描述
	 */
	private String billDesc;
	/**
	 * 账单标题
	 */
	private String billTitle;
	/**
	 * 开支 1收入2支出
	 */
	private Integer expenditure;
	/**
	 * 交易开始时间
	 */
	private Date transactionTime;
	/**
	 * 交易人姓名
	 */
	private String transactionName;
	/**
	 * 企业账户
	 */
	private Long busBusinessId;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 交易金额
	 */
	private Integer amount;
	/**
	 * 任务类型0 日常任务 1 主线任务
	 */
	private Integer type;

	/**
	 * 0没有领取1领取 领取奖励
	 */
	private Integer isReward;

	/**
	 * 文件消费id
	 */
	private Long fileLoadId;

	public BillEntity() {}

    public BillEntity(String billTitle,Integer amount,Integer expenditure, Date transactionTime, String transactionName, Long busBusinessId, Date createTime, Integer type, Integer isReward) {
        this.billTitle = billTitle;
        this.amount = amount;
        this.expenditure = expenditure;
        this.transactionTime = transactionTime;
        this.transactionName = transactionName;
        this.busBusinessId = busBusinessId;
        this.createTime = createTime;
        this.type = type;
        this.isReward = isReward;
    }

	public BillEntity(String billTitle, Integer expenditure, Date transactionTime, String transactionName, Long busBusinessId, Date createTime, Integer amount, Integer type) {
		this.billTitle = billTitle;
		this.expenditure = expenditure;
		this.transactionTime = transactionTime;
		this.transactionName = transactionName;
		this.busBusinessId = busBusinessId;
		this.createTime = createTime;
		this.amount = amount;
		this.type = type;
	}
}
